package com.dein.music.dao;

import com.dein.music.model.Music;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MusicAccumulationDao {
    List<Music> getAccumulationMusic(
            @Param(value = "userId")Long userId,
            @Param(value = "limit")Integer limit,
            @Param(value = "start")Integer start
    );

    void    addAccumulationMusic(
            @Param(value = "userId")Long userId,
            @Param(value = "musicId")Long musicId
    );

    Integer countAccumulationMusic(
            @Param(value = "userId")Long userId
    );

    int accumulationMusicExist(
            @Param(value = "userId")Long userId,
            @Param(value = "musicId")Long musicId);
}
